package com.jdcjk.chat;


import com.jdcjk.MainApp;

import org.jivesoftware.smack.chat.Chat;
import org.jivesoftware.smack.chat.ChatManagerListener;

/**
 * Created by dong on 2016/7/11.
 * 即时通信聊天创建监听器
 */
public class OpenFireChatManagerListener implements ChatManagerListener {
    @Override
    public void chatCreated(Chat chat, boolean createdLocally) {
        MainApp.chatMessageListener = new OpenFireChatMessageListener();
        MainApp.chat = chat;
        MainApp.chat.addMessageListener(MainApp.chatMessageListener);
    }
}
